# 导入等待时间
from time import sleep
# 导入启动包
from selenium import webdriver
# 导入chrom服务(车)
from selenium.webdriver.chrome.service import Service
# 车里装一个司机
service = Service(executable_path='../自动化下单流程/chromedriver.exe')
# 导入一个定位工具(方向盘)by
from selenium.webdriver.common.by import By
# 司机发动Chrome这个车
driver = webdriver.Chrome(service=service)
# 开启百度
driver.get("https://www.baidu.com/")
driver.maximize_window()
# sleep(5)

ele = driver.find_element(By.NAME,'wd')
ele.send_keys(i)
sleep(1)

ele = driver.find_element(By.ID,'su')
ele2.click()
sleep(3)

# driver.quit()